package com.backend.common;

import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;

@Data
public class PageRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    //默认
    private static int PAGE_SIZE = 10;
    private static int CURRENT_PAGE = 1;

    /**
     * 页面大小
     */
    private long pageSize = PAGE_SIZE;

    /**
     * 当前页号
     */
    private long currentPage = CURRENT_PAGE;

    private HashMap<String, Object> params = new HashMap<String, Object>();
}
